<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	String nome = request.getParameter("nome");
	String telefone = request.getParameter("telefone");
	boolean ok = false;
	if (nome!=null&&!nome.isEmpty()) {
		session.setAttribute("usuario", nome);
		session.setMaxInactiveInterval(5);
		ok = true;
	}
 %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Processa Formulário</title>
</head>
<body>
<%
	if (ok) { %>
		<h3>Parâmetros Ok!</h3>
<% 	} else { %>
		<h3>Parâmetros incorretos!</h3>
<% 	} %>
<a href="index.jsp">Voltar</a>
</body>
</html>